package org.grow.enter.controller;

import org.grow.enter.entity.Person;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xwg
 * @CreateDate: 2021/9/7
 */

@RestController
public class SideController {
    @PostMapping("/insert")
    public Person insert(@RequestBody Person person){
        System.out.println("传入的信息： "+person);
        person.setAge(88);
        return person;
    }
}
